﻿


using CTP.CRM.Core.Common.Enums;

namespace CTP.CRM.Repository.Employee.ValueObjects
{
    /// <summary>
    /// 根据员工查询业务主体信息
    /// </summary>
    public class GetBusinessByUserIdValueObject
    {
        ///<summary>
        /// Id
        ///</summary>
        public int Id { get; set; }

        ///<summary>
        /// 用户Id
        ///</summary>
        public int UserId { get; set; }

        ///<summary>
        /// 业务主体名称
        ///</summary>
        public string? Name { get; set; }

        ///<summary>
        /// 业务主体英文名称
        ///</summary>
        public string? EnName { get; set; }

        /// <summary>
        /// 业务主体类型
        /// </summary>
        public BusinessMainBodyType Type { get; set; }
        ///<summary>
        /// 父级业务主体Id
        ///</summary>
        public int ParentId { get; set; }

        /// <summary>
        /// 子系统id
        /// </summary>
        public int? SubSysId { get; set; }
        ///<summary>
        /// 所属组织公司Id
        ///</summary>
        public int? OrgId { get; set; }

        ///<summary>
        /// 是否启用
        ///</summary>
        public bool IsEnable { get; set; }

        ///<summary>
        /// 备注
        ///</summary>
        public string Remark { get; set; }

        /// <summary>
        /// 树状子节点
        /// </summary>
        public List<GetBusinessByUserIdValueObject> ChildBusinessList { get; set; }
    }

}